﻿using System.Xml.Linq;
using System;

namespace TVersityDotNet
{
    public class TVersityRequest
    {
        public virtual string Path{ get; set; }

        /// <summary>
        /// Returns the whole string, minus the baseurl used to process this query
        /// </summary>
        public virtual string RequestString
        {
            get { return this.Path; }
        }

        public virtual TVersityResponse CreateResponse(XDocument xmlDocument)
        {
            TVersityResponse response = new TVersityResponse();
            response.ParseMessage(xmlDocument);
            return response;
        }
    }
}